package com.smartao.core.info.server;

/**
 * Tomcat 容器配置,支持版本 tomcat6.0
 * @author Ricky
 */
public class Tomcat extends AppServer {

	public Tomcat() {
		super(null);
		this.serverInfo="TOMCAT";
	}

	private static final String CONTAINER_PREFIX = "java:comp/env/";

	@Override
	public String getJndiName(String JndiName) {
		return CONTAINER_PREFIX + JndiName;
	}

	@Override
	public String getTransactionManagerName() {
		return "com.eweaver.server.TomcatTransactionManagerLookup";
	}

	@Override
	public String getServerHomeDir() {
		return System.getProperty("catalina.home");
	}

	@Override
	public String getServerTempDir() {
		return System.getProperty("java.io.tmpdir");
	}

}
